import { AppRouteRecordRaw } from '@fssc/admin';

const Layout = () => import('@/layout/index.vue');

export default [
  {
    path: '/more-level',
    component: Layout,
    meta: {
      title: 'MoreLevel',
    },
    name: 'MoreLevel',
    children: [
      {
        path: 'one-level',
        name: 'OneLevel',
        meta: {
          title: 'OneLevel',
        },
        component: () => import('@/views/more-level/one-level/index.vue'),
        children: [
          {
            path: 'one-detail',
            name: 'OneDetail',
            meta: {
              title: 'OneDetail',
              hidden: true,
            },
            component: () => import('@/views/more-level/one-level/OneDetail.vue'),
          },
        ],
      },
      {
        path: 'two-level',
        name: 'TwoLevel',
        meta: {
          title: 'TwoLevel',
        },
        component: '',
        children: [
          {
            path: 'two-detail',
            name: 'TwoDetail',
            meta: {
              title: 'TwoDetail',
            },
            component: () => import('@/views/more-level/two-level/TwoDetail.vue'),
          },
          {
            path: 'two-detail-detail',
            name: 'TwoDetailDetail',
            meta: {
              title: 'TwoDetailDetail',
            },
            component: () => import('@/views/more-level/two-level/TwoDetailDetail.vue'),
          },
        ],
      },
    ],
  },
] as unknown as AppRouteRecordRaw[];
